namespace EyeOpen.DddOrm.Domain.Factories
{
	using EyeOpen.Domain;

	public static class ContentCategoryFactory
	{
		public static ContentCategory Create(Content content, Category category)
		{
			Ensure
				.That(content, "content")
				.IsNotNull();

			Ensure
				.That(content, "category")
				.IsNotNull();

			return
				new ContentCategory { Content = content, Category = category }.SetId();
		}
	}
}